package com.mdxq.smp.test01.controller;


import com.mdxq.smp.test01.entity.Role;
import com.mdxq.smp.test01.entity.User;
import com.mdxq.smp.test01.service.RoleService;
import com.mdxq.smp.test01.service.UserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author WanJl
 * @version 1.0
 * @title RoleController
 * @description
 * @create 2024/12/30
 */
@RestController

@Api(tags = "角色管理接口")
public class RoleController {
    @Resource
    RoleService roleService;

    @ApiOperation(value = "查询角色列表",notes = "介绍.......")
    @GetMapping("/role/queryAll")
    public List<Role> queryAll() {
        return roleService.list();
    }
}
